|
Cytosim
PI
Cytoskeleton Simulator
|
Templated functions to print Vectors and Matrices with minimal formatting.
Functions | |
| template<typename T > | |
| void | vecPrint (std::ostream &os, unsigned m, const T *X, int digits=3) |
| print a vector on a line | |
| template<typename T > | |
| void | vecDump (std::ostream &os, unsigned m, const T *X, int digits=8) |
| print a vector in column format | |
| template<typename T > | |
| void | matPrint (std::ostream &os, unsigned m, unsigned n, const T *X, int digits=3) |
| print a matrix, aligning the numbers | |
| template<typename T > | |
| void | matSparsePrint (std::ostream &os, unsigned m, unsigned n, const T *X, int digits=8) |
| print a matrix in sparse format: line_index, column_index, value | |
| template<typename T > | |
| void | matSparsePrintOffset (std::ostream &os, unsigned m, unsigned n, const T *X, int off, int digits=8) |
print a matrix in sparse format, but adding off to all line and column indices | |